package com.learn.kotlinlearndemolist.model

import android.util.Log
import com.learn.kotlinlearndemolist.interfaces.Study

class Teacher(var id: Int, var name: String) : Study {
    //    lateinit var name: String;
    private val TAG = "Teacher"

    constructor() : this(0, "")

    constructor(id: Int) : this() {
        this.id = id;
    }

    override fun read() {
        Log.d(TAG, "$name read: ")
    }

    override fun write() {
        Log.d(TAG, "$name write: ")
    }

    override fun toString(): String {
        return "Teacher(id='$id', name=$name)"
    }
}